/*
 * File:   Link.h
 * Author: Elevator
 *
 * Created on July 14, 2013, 8:40 PM
 */

#ifndef DATA_LINK_H
#define DATA_LINK_H

#include <string>

namespace data {

	struct Link {
	public:
		Link(
			std::string partAId,
			std::string partBId ) :
		_partAId( partAId ),
		_partBId( partBId )
		{ }

		inline const std::string GetPartAId( ) const { return _partAId; }
		inline const std::string GetPartBId( ) const { return _partBId; }

	private:
		std::string _partAId;
		std::string _partBId;
	};

	inline bool operator == (const Link& a, const Link& b) {
		return
			a.GetPartAId() == b.GetPartAId() &&
			a.GetPartBId() == b.GetPartBId();
	}
}
#endif	/* LINK_H */
